#!/bin/bash

#vxlan backend doesn't seem to work on CentOS 6.6
#curl -s -L http://127.0.0.1:4001/v2/keys/coreos.com/network/config -XPUT -d value='{"Network": "{{ kube_overlay_ip }}/{{ kube_overlay_prefix }}", "SubnetLen": 24, "Backend": {"Type": "vxlan"}}'
curl -s -L http://127.0.0.1:4001/v2/keys/coreos.com/network/config -XPUT -d value='{"Network": "{{ kube_overlay_ip }}/{{ kube_overlay_prefix }}", "SubnetLen": 24, "Backend": {"Type": "udp"}}'
